home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 101-125 / scopedisk111 / outliner / source / sure.h < prev    next >
C/C++ Source or Header  |  1995-03-19  |  895b  |  37 lines

  1. AreYouSure(ReqWindow)      /*Displays an ARE YOU SURE? requester and waits*/
  2. struct Window *ReqWindow;  /*for an OK or CANCEL. (Uses AutoRequest() )*/
  3. {
  4.    struct IntuiText Body,Positive,Negative;
  5.  
  6.    Body.FrontPen=2;
  7.    Body.BackPen=1;
  8.    Body.DrawMode=JAM1;
  9.    Body.LeftEdge=8;
  10.    Body.TopEdge=8;
  11.    Body.ITextFont=NULL;
  12.    Body.IText="Are you sure?";
  13.    Body.NextText=NULL;
  14.  
  15.    Positive.FrontPen=2;
  16.    Positive.BackPen=1;
  17.    Positive.DrawMode=JAM1;
  18.    Positive.LeftEdge=6;
  19.    Positive.TopEdge=3;
  20.    Positive.ITextFont=NULL;
  21.    Positive.IText="OK";
  22.    Positive.NextText=NULL;
  23.  
  24.    Negative.FrontPen=2;
  25.    Negative.BackPen=1;
  26.    Negative.DrawMode=JAM1;
  27.    Negative.LeftEdge=6;
  28.    Negative.TopEdge=3;
  29.    Negative.ITextFont=NULL;
  30.    Negative.IText="Cancel";
  31.    Negative.NextText=NULL;
  32.  
  33.      return(AutoRequest(ReqWindow,&Body,&Positive,&Negative,NULL,NULL,
  34.                            180,60));
  35. }
  36.  
  37.